<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<html>
<head>
    <title>Title</title>
    <jsp:include page="/static/common/easyui-header.jsp"></jsp:include>
    <script type="text/javascript" src="/static/js/views/role.js"></script>
</head>
<body>
    <input id="role_datagird">
    <div id="role_datagrid_toolbar">
        <a class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true" data-cmd="addRole">添加</a>
        <a class="easyui-linkbutton" data-options="iconCls:'icon-edit',plain:true" data-cmd="editRole">编辑</a>
    </div>
<div id="role_dialog" style="padding:10px">
    <form id="role_add_form" class="easyui-form" method="post">
        <input type="hidden" name="id" id="role_id"/>
        <table>
            <tr>
                <td>角色名称 : <input class="easyui-textbox" name="name">&emsp;&emsp;</td>
                <td>角色编码 : <input class="easyui-textbox" name="sn"></td>
            </tr>
            <tr>
                <td>选择菜单 : <select id="cc" class="easyui-combotree" style="width:200px;" data-options="url:'/menu/selectAllParent',multiple:true,cascadeCheck:false"></select></td>
            </tr>
            <tr>
                <td style="height: 300px">
                    <table id="permission_all_datagrid"></table>
                </td>
                <td style="height: 300px">
                    <table id="permission_self_datagrid"></table>
                </td>
            </tr>
        </table>
    </form>
</div>
<div id="role_dialog_buttons">
    <a class="easyui-linkbutton" data-options="iconCls:'icon-ok',plain:true" data-cmd="save">确定</a>
    <a class="easyui-linkbutton" data-options="iconCls:'icon-cancel',plain:true" data-cmd="cancel">取消</a>
</div>
</body>
</html>
